PYTHON COURSE STARTER KIT
=========================

STEP 1 - Install Python (once)
  Windows / Mac: download Python 3.12 from https://www.python.org/downloads/
                 and install it with the normal options.
  Ubuntu Linux:  sudo apt install python3 python3-venv

STEP 2 - Set up your environment (once)
  Best way: follow HOUSE-CLEANING.md and type the commands yourself.
  Stuck? The setup file below does the same thing for you:
  Windows:    double-click  SETUP-Windows.bat
  Mac/Linux:  open a terminal in this folder and type:  bash setup-mac-linux.sh
  Wait until every line says OK.

STEP 3 - Start an app (any time)
  Windows:    double-click  RUN-APP-Windows.bat   (opens app.py)
              or drag any .py file onto RUN-APP-Windows.bat
  Mac/Linux:  bash run-app-mac-linux.sh            (opens app.py)
              or  bash run-app-mac-linux.sh myfile.py
  Your browser opens the app (if not, go to http://127.0.0.1:8501). Click the button: "YAY, it works!"
  means you're ready.
  The bakery shop example: drag bakery_demo.py onto RUN-APP-Windows.bat
  (Mac/Linux: bash run-app-mac-linux.sh bakery_demo.py).
  To stop it: close the window (Windows)
  or press Ctrl+C (Mac/Linux).

THONNY (the editor we use in class)
  Point Thonny at the course environment once, so it can find Streamlit:
  Tools > Options > Interpreter > "Alternative Python 3 interpreter
  or virtual environment", then set Python executable to:
    Windows:    C:\Users\YOUR-NAME\python-course-env\Scripts\python.exe
    Mac:        /Users/YOUR-NAME/python-course-env/bin/python
    Linux:      /home/YOUR-NAME/python-course-env/bin/python
  To run a Streamlit app from Thonny: Tools > Open system shell, then
    streamlit run myfile.py

WHAT THE SETUP DOES
  - Makes a private Python environment just for this course
    (in your user folder: python-course-env), so it never clashes
    with other Python programs on your computer.
  - Installs Streamlit into it.
  - Sets Streamlit to local-only (other computers can't open your app)
    and switches off its anonymous usage statistics.

Problems? See the Troubleshooting Guide, or email contact@a3tech.uk
